class WithDrawModel {
  String? money;
  int? incomeMoney;
  int? minMoney;
  String? maxMoney;
  String? rule;
  String? alipayAccount;
  int? alipayStatus;
  List<WithDrawList>? list;

  WithDrawModel(
      {this.money,
      this.incomeMoney,
      this.minMoney,
      this.maxMoney,
      this.rule,
      this.alipayAccount,
      this.alipayStatus,
      this.list});

  WithDrawModel.fromJson(Map<String, dynamic> json) {
    money = json['money'];
    incomeMoney = json['income_money'];
    minMoney = json['min_money'];
    maxMoney = json['max_money'];
    rule = json['rule'];
    alipayAccount = json['alipay_account'];
    alipayStatus = json['alipay_status'];
    if (json['list'] != null) {
      list = <WithDrawList>[];
      json['list'].forEach((v) {
        list!.add(WithDrawList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['money'] = money;
    data['income_money'] = incomeMoney;
    data['min_money'] = minMoney;
    data['max_money'] = maxMoney;
    data['rule'] = rule;
    data['alipay_account'] = alipayAccount;
    data['alipay_status'] = alipayStatus;
    if (list != null) {
      data['list'] = list!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class WithDrawList {
  int? money;
  int? isDisable;

  WithDrawList({this.money, this.isDisable});

  WithDrawList.fromJson(Map<String, dynamic> json) {
    money = json['money'];
    isDisable = json['is_disable'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['money'] = money;
    data['is_disable'] = isDisable;
    return data;
  }
}
